import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { DBController } from './controller'

const db = new DBController()

window.db = db

db.open()
  .then(() => {
    console.log('数据库打开完毕')
  })
  .catch((err) => {
    console.error('数据库打开失败', err)
  })

const app = createApp(App)
app.use(ElementPlus)
app.mount('#app')
